﻿using Acme.ConcreteMixDesign.TopicInformations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Acme.ConcreteMixDesign.Topics
{
    /// <summary>
    /// 审计属性Audited:创建时间、创建者ID、最后修改时间、最后修改者ID
    /// </summary>
    public class Topic:AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 题目名称
        /// </summary>
        public string TopicName { get; set; }
        /// <summary>
        /// 题目内容
        /// </summary>
        public string TopicContent { get; set; }
        public Topic() { }

        public Topic(Guid id,string topicName, string topicContent)
        {
            Id = id;
            TopicName = topicName;
            TopicContent = topicContent;
        }
        public void UpdateTopic(Guid id)
        {
            this.Id = id;
        }
    }
}
